From e9d95b3170fe24b84798628dcf431891fdbdd019 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Thu, 19 May 2005 08:06:04 +0000 Subject: [PATCH] bitkeeper revision 1.1458 (428c48ecnHqb4lxc2c4KfJZ0p7500Q) init_boot_pages() should ignore sub-page regions. Signed-off-by: Matthew Chapman Signed-off-by: Keir Fraser --- xen/common/page_alloc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/common/page_alloc.c b/xen/common/page_alloc.c index e37422f962..c320d75174 100644 --- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -156,6 +156,8 @@ void init_boot_pages(unsigned long ps, unsigned long pe) ps = round_pgup(ps); pe = round_pgdown(pe); + if ( pe <= ps ) + return; map_free(ps >> PAGE_SHIFT, (pe - ps) >> PAGE_SHIFT); -- 2.30.2